package com.nku.mason.lucene.fy.vo;

import java.util.List;

public class PageBean<T> {
	private int start;
	private int pageSize;
	private List<T> pageList;
	private int totalPageNum;
	private int currPage;
	private String keyWord;
	private int totalRecordNum;
	
	//Getters & Setters
	public int getStart() {
		return (currPage-1) * pageSize;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public List<T> getPageList() {
		return pageList;
	}
	public void setPageList(List<T> pageList) {
		this.pageList = pageList;
	}
	public int getTotalPageNum() {
		return totalPageNum;
	}
	public void setTotalPageNum(int totalPageNum) {
		this.totalPageNum = totalPageNum;
	}
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public String getKeyWord() {
		return keyWord;
	}
	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	public int getTotalRecordNum() {
		return totalRecordNum;
	}
	public void setTotalRecordNum(int totalRecordNum) {
		this.totalRecordNum = totalRecordNum;
	}
	/***************************************************************************/
	@Override
	public String toString() {
		return "PageBean [start=" + start + ", pageSize=" + pageSize + ", PageList=" + pageList + ", totalPageNum="
				+ totalPageNum + ", currPage=" + currPage + "]";
	}
}









































































































